using System;
using Castle.Core.Logging;
using log4net;
using log4net.Config;

namespace WineCellar.Web
{
    public class logging
    {
       private static logging uniqueInstance = null;
       public ILogger _logger = null;

        private logging(Type pType)
        {
           XmlConfigurator.Configure();
           LogManager.GetLogger(pType);
        }
        public static logging GetInstance(Type pType)
        {
            // 'lazy' evaluate instance
            if (uniqueInstance == null)
            {
                uniqueInstance = new logging(pType);
            }

            return uniqueInstance;
        }		

    }		
        
}
